import { request } from 'umi';

/** 管理员请求所有资源接口 POST /api/admin/getLinks */

export async function getAdminLinks(body, options) {
  return request('/api/admin/getLinks', {
    method: 'POST',
    data: body,
    ...(options || {}),
  });
}
/** 管理员更新资源状态 POST /api/admin/updateLinks */

export async function updateLinks(body, options) {
  return request('/api/admin/updateLinks', {
    method: 'POST',
    data: body,
    ...(options || {}),
  });
}
